﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClientSide.ServiceReference1;

namespace ClientSide
{
    class Program
    {
        static void Main(string[] args)
        {

            using(var ball = new MagicEightBallClient())
            {
                Console.WriteLine("Type in question or the Magic Eightball:");
                var q = Console.ReadLine();

                var answer = ball.ObtainAnswerToQuestion(q);
                Console.WriteLine("Answer: " + answer);

                var c = ball.GetComplex();
                Console.WriteLine("Get Complex:" + c.ID + c.name);

                Console.WriteLine("Random number: " + ball.RandomNumber());
            }
        }
    }
}
